home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
jav503.zip
/
shape.jav
< prev
next >
Wrap
Text File
|
1996-04-17
|
838b
|
67 lines
// -[KeepHeading]-
// -[Copyright]-
/**
* (c) Copyright 1993-1994. Step Ahead Software Pty Limited. All rights
* reserved.
*/
import java.lang.*;
// -[KeepBeforeClass]-
import java.awt.*;
// -[Class]-
/**
* @jTitle Shape
* @jOverridability must be overridden (abstract)
* @jDescription
* Describe here
*
* @see
*/
public abstract
class Shape
{
// -[KeepWithinClass]-
// -[Fields]-
/**
* X coordinate of shape's origin.
*/
protected int x;
/**
* Y coodinate of shapes origin.
*/
protected int y;
// -[Methods]-
/**
* Constructs a shape object with the given x,y position.
*/
public Shape(int initX, int initY)
{
// Set up initial location
x = initX;
y = initY;
}
public abstract void show(Graphics g);
}